<?php 

$group=intval($_GET['group']);
$batch=intval($_GET['batch']);
$loopCounter =0;
if($group == '1'){
	$loopCounter = 15;
}
else if($group == 2){
	$loopCounter = 43;
}
else if($group == 3){
	$loopCounter = 6;
}
else if($group == 4 ||$group == 5 ||$group == 6 ){
	$loopCounter = 1;
}

?>
<select name="batch" id="batch" class="validate[required]" >
<option value="">---</option>
<?php for($i=1;$i<=$loopCounter;$i++) { 
		if ($i < 10){
			$optionValue = '0'.$i;
			$batch='0'.$batch;
			}
		else
			$optionValue = $i;
		if($group == 4 ||$group == 5 ||$group == 6 ){
			$optionValue = 'N/A';
		}
?>
<option value=<?php echo $optionValue;?> <?php if($optionValue==$batch){ ?> selected="selected"<?php }?>><?php echo $optionValue;?></option>
<? } ?>
</select>
